package m.html.element;

import m.html.element.other.InputElement;

public class SelectTree extends InputElement {
    public SelectTree(String field,String dict,boolean multiple,boolean parent) {
        super("select-tree");
        super.setField(field);
        if(!dict.startsWith("'")) dict="'"+dict+"'";
        super.A(":dict",dict);
        if(multiple) super.A("multiple");
        if(parent) super.A("parent");
        viewElement=Element.tag("div").A("class","input-view-box").E("{{dict("+dict+","+field+")}}");
    }
}
